/*--------------------------------------------------------------
 * File: demo60.c 编码类型：C语言  UTF-8
 * Author WRS (1352509846@qq.com)
 * 功能: 字符串复制
 * Version 0.1
 * Date 2022-09-08 
 * 
 * @copyright Copyright (c) 2022
 * 
----------------------------------------------------------------*/

#include <stdio.h>
#include <string.h>

int main(int argc, char const *argv[])
{
    char src[40] = {0};
    char dest[100] = {0};

    memset(dest, '\0', sizeof(dest));
    strcpy(src, "This is runoob.com\n");
    strcpy(dest, src);
    printf("%s",dest);
    return 0;
}
